Update library return types to match druntime.

Required for gdc backend to know how the functions return and cast appropriately.