configure: add checks for int32_t and int64_t