Fixed travis errors and warnings