Assorted fixes

* cmake CMP0054 and CMP0045
* aarch64 build
* portable code options in PCH cmake
* some of gcc 4.9 warnings
exactly, but the folder with downloaded stuff is there when you switch to 2.4 back from master