Fixed the makefiles and added -O3 optimization