Add support for building libaugeas on solaris and eliminate compilation warnings