Renamed RELEASE to RELEASE_NSOBJECT to fix a warning for an already existing macro

Also undefine macros we locally define to prevent any warnings that could arise from preexisting macros in the build environment.