cmake: small changes to fix some building issues

Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>