Fixed VCL 4 errors in the main VCL file