Update library return types to match druntime.
Merge pull request #2195 from ibuclaw/gencfunc

Update library return types to match druntime.