Comment out unreferenced variables and functions

Fix preprocessor options so DEBUG is almost =RELEASE