main
Rework build files so we can do testing
Rename internal close() functions to close_zck_component to avoid POSIX conflict on AIX
Fix type mismatch