fix linking of g2log