cmake: fix osx warnings

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