Rework some build stuff for better output and to enable strict prototypes