Decruftify and fix the boost configure checks