Fix snapshot building (hopefully).