use preprocessor only
silence sign conversion warning
new memory management wrappers

the new functions
- check size_t overflows
- provide bookkeeping functionality
- log changes
- might be used to limit memory usage