Fix the timeout computing.
Make sure local headers are prefered over system.