Build with all warnings enabled

Fix resulting warnings