Cleanup IMPLEMENT_FUNCTION() in lwan-status.c
Better handling of strtol() in parse_long()

Based on checks performed by OpenBSD strtonum().