minor fixes to NativeApp.cpp