Fixed build errors on travis