Fix meson file and remove warnings from compilation

Fixed meson file by applying proper dependency. Removed boost from
subprojects because boost does not support cmake and meson. User
is able to build boost manually or using a script
boost_build_1.74.0.sh and set BOOST_ROOT variable to build files.
Then reruning meson should detect boost dependency with positive
result.

Removed all warnings from compilation by applying a new flag for
boost - BOOST_ALLOW_DEPRECATED_HEADERS, after boost update this
flag should be removed. Changed tmpnam() with temp_directory_path
provided by std::filesystem.

Tested:
 - Built telemetry with success in cases when different components
   are not installed on system: nlohmann, sdbusplus, googletest,
   phosphor-logging.
 - Using BOOST_ROOT variable that points to installation location
   of boost allows to build telemetry wihtout boost installed on
   system.
 - Unit test passed.

Change-Id: I8d430f4c51b7bc6669c8533e1a76c4666efd4fc6
Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
diff --git a/tests/src/test_persistent_json_storage.cpp b/tests/src/test_persistent_json_storage.cpp
index cf6abd1..7ddc5b6 100644
--- a/tests/src/test_persistent_json_storage.cpp
+++ b/tests/src/test_persistent_json_storage.cpp
@@ -33,7 +33,8 @@
 
 const interfaces::JsonStorage::DirectoryPath
     TestPersistentJsonStorage::directory =
-        interfaces::JsonStorage::DirectoryPath(std::tmpnam(nullptr));
+        interfaces::JsonStorage::DirectoryPath(
+            std::filesystem::temp_directory_path() / "telemetry-tests");
 
 TEST_F(TestPersistentJsonStorage, storesJsonData)
 {