Filter extension linking to pick libuuid only

Also removed libmd from AC_SEARCH_LIBS.