osx: fix building libmemenv.a