configure: fix warnings in check programs