convert EJBindingBase to c++
fix some compiled error

Signed-off-by: 3dseals <lional.king@gmail.com>