Add libmpathcmd library and use it internally