Fix compilation on windows for record layer