Check for strtoul() correctly

When parsing port numbers, the intent was to use strtoul() when
available, but the test for its availability wasn't being made.