Added optimization flag in linux Makefile. Also removed some compiler warnings