Fix compilation for non coreclr
Add Type.cs