client: created common files for the renderers and fixed the build