Fix configure checks