Added some standard library missing stubs.

Kinda painful to go through each of them, but I've found these required in many places.
Maybe there's a better way to do it automatically instead of preparing stubs, although then we'd have to sacrifice absolute control over it.