yet more work on build script

plus irradicating part of ue api that stoped the compiler!
few tweaks here and there