fixing 4.7 compile