Fixing a whole bunch of strict standard warnings and errors