[test][util] replace compile time check that uses __cplusplus

with BOOST_NO_LONG_LONG