Added support for the new version of libcuba 4.0.