Set up LD_LIBRARY_PATH appropriately to test imagemagick