Add bonekit c library implementation code from bonekit ruby gem;
Add autoconf support;