Add getopt implementation to abuild