Fix mammoth build