Warning flags, debug flags and optimization flags were commented out.
I have commented these back in, with the exception of -Wall. This results in more warnings so I will save this for later.