Comparator needs to be surrounded with 

#ifdef _MSC_VER
#endif