Fixed small compile error for cross-platform.