HardwareRender: Dropped use of uintptr_t for ulong

It should work and allow to dodge type problems.
Makefile: Generate .typelib files