Add handle types to API header.
Stubs for zero, memory and locking functions.
Use stubs in test program.