Added default optimization flag for Linux and Mac