fixes undefined symbol errors when building extension module on AIX by linking `libpython`