more tweaks to building Foundation.a library