Add --enable-profile to turn on gprof. This is not perfect, because