improved autotools files, now we use PKG stuff for rtmidi
and we also make a better use of the different variables (thanks qdii)