fixed compiler version check