Replaced use flags with CMake code that just picks the right files to use for each port.