consolidate type checks in one file
unify offsetof code - should work on any target
use special address arithmetic only where necessary
fix typo on pthread_mutex_timedwait()
ERROR_OVERRIDE_PROTECTION without vsnprintf only

define ERROR_OVERRIDE_PROTECTION only without vsnprintf
fix typo
use sg_get_sys_page_size()
fix some warnings
solve overflow calculation hopefully clearer