Fix CMake warnings on linking the Python libraries