1. Found that I needed to link with pthread if I want to be able to use dlopen in my Projects
2. Made some minor tweaks to the dynmical loading code to work on ubuntu.