Fix all compilation erros