Fix 1.7.10 compile errors