Use build/ directory for all stuff
Fix all C90 warnings