try using libtool

also split out msock() function into a separate file
(This build will most likely fail, as I have not split out the main()
functions in mhttp.c and mquery.c yet)