Make Travis build target osx platform
Favor usage of non obsolete methods