Wavefront Control System for Phase Compensation in Hard X-ray Optics