Fix loading of libraries at include time closes #11