CMake fixes

Hello,

Here is some fixes for cmake msvc.

Please note, these changes are without
hpx_add_definitions(-DBOOST_ALL_DYN_LINK)
in root CMakeLists.txt that was in my latest commit.