cmake: implement simplified auto-configuration for waffle.

For now linux is auto-configured by default, and should not have any
major breaks.