Build in a temporary directory