Attempt to generify the mock boundary to be windows-compatible.