Build fixes

Mostly fixing issues that prevent building on a case-sensitive filesystem, also including files that UADE has set to .gitignore but that are not autogenerated with the current ndk build script.