Add more functions to the runtime library.
Merge pull request #192 from pjonsson/more-rt

Add more functions to the runtime library.