fixed linux compile errors; replaced c++11 features with boost
added more event types