updated bgpq3 - fix for macosx 10.9 - added head option