Added some CMake tests.

Signed-off-by: Ronald Huizer <r.huizer@xs4all.nl>
Added some CMake tests.

Signed-off-by: Ronald Huizer <r.huizer@xs4all.nl>
Small build fixes.

Signed-off-by: Ronald Huizer <r.huizer@xs4all.nl>