resolve #3 add build script for the C API