Fix compile error in pre-1.8 profile.