correct errors and warnings
Merge branch 'master' into no_sound