Modification to load correctly plugins under windows/linux/osx