Add header and library checks for wiredtiger

Fail incorrect paths at beginning of compile instead of the middle.

Verified in MCI.