Use latest autoconf ax checks for compiler options

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Tidy up accept handling a little

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>