Support setting debug level when compiling