build: Enabling ability to use precompiled headers and some other build fixes

Change-Id: If2b216e5674fc762338929026733f3dcb801bb1b
Refs: #1588
diff --git a/tests/test-common.hpp b/tests/test-common.hpp
index 8939324..15124cd 100644
--- a/tests/test-common.hpp
+++ b/tests/test-common.hpp
@@ -25,9 +25,11 @@
 #ifndef NFD_TESTS_TEST_COMMON_HPP
 #define NFD_TESTS_TEST_COMMON_HPP
 
-#include <boost/test/unit_test.hpp>
+#include "boost-test.hpp"
+
 #include "core/global-io.hpp"
 #include "core/logger.hpp"
+
 #include <ndn-cxx/security/key-chain.hpp>
 
 namespace nfd {