Fix build
Fix platform check