Fixed built in events so they use CRTP systems instead of base classes. Also fixed delta time.