Fix some warnings, cleanup, ignore stupid gcc warnings