Added multiplatform support for reading ics files, has to be moved