Travis: use -fPIE

TSan sometimes fails to build without it.
https://travis-ci.org/znc/znc/builds/35293091
configure: handle environment variables
Merge remote-tracking branch 'origin/master' into cmake-fixes

Conflicts:
	.travis.yml
test travis build