Fix compilation for haXe 3