Fix building samples

Trying to fix a stable build with all samples. Mostly TickMeter gives me headaches. Lets see what we can do about this ...