update compile option to support GDB