Fixed MSVC builds.
Fixed GCC compilation.