Add travis envs to test static/non-static builds.