fix build issue related to compiler version