make sure the arch directory exists before building a library