api:cpp: support static properties and methods