Fix clang warning (-Wundef)

Since macro BOOST_PREDEF_DETAIL_OS_DETECTED used before initialization it
must be checked with `#if !defined(` command instead of `#if !(`.