set default compile flag for HAVE_G2O to FALSE