Fix build for travis and keep it windows friendly.