fix warnings
Merge branch 'master' into portable