Fixes and shiny new compiler flags. Still broken.