[cpp] Add hxcpp_api_level to allow backwards compatibility in both haxe and c++ code.  Add additional memory usage statistics