Update mac build scripts
Fix LTO compilation
Merge branch 'master' into librocket