Fixes for gcc/Linux + fix Mistake in MSVC bithacks code