Add a Mercury checker to Flycheck using the Melbourne Mercury Compiler.