For getting rid of the debug info you can also just disable the DEBUG define.