cmake: osx fixes

Signed-off-by: Tim Blechmann <tim@klingt.org>