added EventsThread source to makefile