Fix the build-time error under python 3.7 and earlier when ctypes is manually added to hiddenimports.