Detect IPPROTO_* via configure

On Android these are not macros, but rather defined in an enum.