Conditional filter/map expressions

This should hopefully fix Windows (untested).