pack: check for presence of getopt.h

still doesn't build without it thought