fixing some bugs in language binding example. make it compile