Add the getopt implementation from Alpine Linux (derived from BSD) so I don't have to deal with libc getopt quirks