Added some optimisation and warning compiler flags.