Get rid of uintptr_t to remove dependency on stdint.h

Fix issue #76.