Fix boost detection on newer versions of boost.

Without this, there is an error running the configure test,
unable to find uintptr_t.