Fixed dynamic loader to link objects properly relative to plugin directory