Fix output strings
Fix defines to match CMakeList

Define to disable memory mamangement did not match the
CMakeList define.
Change thrown exception to gcc compatibility
Fix namespace and headers