Help tring to understand error 666



Hi, the problem here (Windows) seams to be an interference between two C libraries (GMT and ImageMagick).

This first command generates a map and works well

julia> using FileIO, GMT
julia> P = gmt("pscoast -R-10/-3/35/45 -G200 -W0.5p -Ba -JM12c -P");

but if I now try to import an image with FileIO

julia> img1=load("lixa.JPG");
Error encountered while loading "lixa.JPG".
Fatal error:
ERROR: RegistryKeyLookupFailed `CoderModulesPath' @ error/module.c/GetMagickModulePath/666
 in error(::ImageMagick.MagickWand) at c:\j\.julia\v0.5\ImageMagick\src\libmagickwand.jl:198
 in readimage(::ImageMagick.MagickWand, ::String) at c:\j\.julia\v0.5\ImageMagick\src\libmagickwand.jl:277
 in #load_#20(::Type{T}, ::String, ::Void, ::Function, ::String) at c:\j\.julia\v0.5\ImageMagick\src\ImageMagick.jl:72
 in #load#13(::Array{Any,1}, ::Function, ::FileIO.File{FileIO.DataFormat{:JPEG}}) at c:\j\.julia\v0.5\ImageMagick\src\ImageMagick.jl:51
 in anonymous at .\<missing>:?
 in eval(::Module, ::Any) at .\boot.jl:234
 in #load#17(::Array{Any,1}, ::Function, ::FileIO.File{FileIO.DataFormat{:JPEG}}) at c:\j\.julia\v0.5\FileIO\src\loadsave.jl:87
 in load(::FileIO.File{FileIO.DataFormat{:JPEG}}) at c:\j\.julia\v0.5\FileIO\src\loadsave.jl:75
 in #load#13(::Array{Any,1}, ::Function, ::String) at c:\j\.julia\v0.5\FileIO\src\loadsave.jl:45
 in load(::String) at c:\j\.julia\v0.5\FileIO\src\loadsave.jl:45

If I just change the order of the operations than everything works well

julia> using FileIO, GMT
julia> img1=load("lixa.JPG");
julia> P = gmt("pscoast -R-10/-3/35/45 -G200 -W0.5p -Ba -JM12c -P");

So clearly some dependency loaded by GMT conflicts with ImageMagick. What can that be?
Any idea on what might be that 666 error error/module.c/GetMagickModulePath/666. The Beast?