more C++ extern C and use bool instead of int
rename to cpp interim commit
fix build
use a map for country search