Travis CI: show config.log if build fails
Travis CI: try gcc
Build: use gdlib-config
Build fixes