add -pg for gprof flags with gcc