Add gprof to LDFLAGS in case of debugging