fix project file nowarn flags in release mode, fix build cmd platform detection