Fixed the build for PLATFORM_GENERIC