Building the midi module only if the libs are found.