[CMake] When disabling PIC, also pass -fno-pie when linking if it is supported.