Fixed bug in Event package and added macro support for socket handling in FCGI server.