added example for exporting a c library