stop omitting the frame pointer on Solaris-derived systems
add plumbing for event port-based poller
flesh out implementation

make all local function names and globals unique within the process
remove REGPRM usage
remove "static" from functions to avoid dangerous gcc optimization