added option for turning on gdb compile flag