Add POSIX string and types functions

Also some more reorganizing to be more like Linux