Build both a static and shared libxm.