Fix compile for old builds