Fixed Premake build files for OSX.
GCC/Clang parser build fixes.
Added the event to its block to maintain the connection between them.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>