Small fixes and improvements

Hello,
 here's the fix for the OpenUri() method which stopped working a couple of commit ago, an unrelated patch to move the .so files in a subfolder as suggested during the Debian package review by @paultag and some other unrelated trivial stuff I had lying around.

Thanks!