Fix minor issues with the CMakeLists.txt.

This fixes some style issues, and also makes sure that all the required
dependencies will be "found" by the find_package(DICOM) command.