Travis fix compile

Travis has old compiler and cmake etc, so build failed and needed to make the script to update them.