api:cpp: use StringA, fix Ruby aliases, implement System for WM/CE/Windows