Add basic event handling in the NetBSD target