Make resource compiler more C++-ish