Remove some dead Erlang code from cloudi_core. Fix minor C++ syntax warnings.