Fixed case of G2 include
Removed extern C from C code