osx: fix building libmemenv.a and db53