plugin & feature fixes

I had some problems building and installing this library so I have fixed these issues.