for python binding to work on mac '.dylib'  should be added to ext_whitelist

add dylib to ext_whitelist for posix system