Switched integer and pointer types to standard namespace types
* i.e. replaced size_t with std::size_t, uint8_t with std::unit8_t and so on
** the standard defines these types in its namespace which should not be ommitted
** the std::* types offer better compiler independence as they are defined by the standard
* replaced posix specific off_t type with std::ptrdiff_t