Updated makefile to work with Windows and to use O3 optimisation.