patched to use new NPN API
Merge pull request #17 from ghostwheel42/master

patched to use new NPN API