fix eventloop example callback argument handling (fixes #3)