First round of changes aimed to help using netloc in a larger package

 1. Move all Jansson-related includes and function prototypes to
    private/netloc.h.
 2. Protect _GNU_SOURCE #define so that you don't get redefinition
    warnings if including netloc.h in a larger package.
 3. Add (void) to function signatures that take no parameters.