Fix Travis and Appveyor config