cmake: rework unit test execution a bit

so we don't depend on the static test_exec_monitor boost lib, also fixes some rare main undefined errors
Merge pull request #556 from karolherbst/boost_fix

cmake: rework unit test execution a bit