more restrictions on travis matrix, improve 1.8 compatibility