Adding debug compiler flags and debug mode.