Fixed compile bugs with new Hails