forked from npapi-sdk http://code.google.com/p/npapi-sdk/