fixed static inclusion of g2c and m libs