getopt with long option on OS X, works on Ubuntu, too