Move the duplicated compiler-rt support routines into its own source file. This will need to be expanded for Windows. As on Linux, there are certain builtin routines which are not available from the standard runtime and need to be augmented for now.