Assorted fixes:

* cmake CMP0054 and CMP0045
* aarch64 build
* portable code options in PCH cmake
* some of gcc 4.9 warnings
Fix Android build with the most resent android.toolchain.cmake
Merge pull request #3534 from taka-no-me:build_fixes