Try using #if defined for all platform pre-processor conditionals. Maybe this fixes the Windows build?