Fix inverted conditional

Solution now builds on OS X! Hooray!!
Unix equivalent BuildEvents