When profiling, turn off -g and turn -O3 on.

No sense profiling un-optimized code.