Compile fixes
Merge branch 'master' into dev