patch from victzhang to fix issue #25

I have tested this patch and verified that it gets the plugin working again under Ubuntu 13.10