Lots of redefines and function moving

- Functions are inlined to be easier to redefine but this will cause more bloat - need to find better way to avoid symbol redefinition
- integer types should be in stdint.h not stddef.h (makes more sense) but stddef.h includes stdint.h for compatibility
- We now have time_t
- Added a bunch of functions for string operations, many of which are very simple and rather small
- Undef some older code to make the inline versions work instead of using older versions