Fixes for Linux + correction of warnings