Add casting.
Removed warnings and add -std=gnu++11 to calibra.c file.