Reduce warning level and fix build for Linux