Events and some build fixes