Add workaround for compiler version check to support 2.8.7 cmake