Fix C++11 usage in native with platform-specific hacks.