Control of nonholonomic systems via dynamic compensation