Add g++ optimization flags in Makefile