Add PlatformServices to the project
Work around AOT limitations by wrapping TimeSpans in a reference type