CMake:
- replace FindLibUUID.cmake with FindUUID.cmake (needed pkgconfig and didn't respect REQUIRED)
- fix if-endif mismatched dev warning in functions.cmake