Added BUILD_DEBUG (for conditional compiling).
Removed the EventListener typedef.
Updated the build script.