Removed pedantic build and added optimisation to debug builds.