removed gcc from a build matrix.

gcc on travis is too old.

Also fixed a nasty bug, detected by clang. Thanks, clang!