for python binding to work on mac

add dylib to ext_whitelist for posix system
Merge pull request #232 from autosquid/master

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