fixing build errors on Travis