Properly support static builds of moab.