avoid unused variable warning on non-windows builds

Found by clang, colon is only checked with BOOST_WINDOWS_API