fix building with cmake
YIN: make comparisons a bit more explicit