Travis: fix MAC OS X build

* Add versions to libraries generated by SWIG need flag '-dynamiclib'.