Fix compilation for local types