Modified plugins to correctly load debug or release versions dependign on the build type.