Adding support for debug builds and other compiler flags.