fixed the makefile and couple of casts so that the c_calling_XSB example will compile and with fewer warnings.
Authored by: kifer 2015-11-14
Parent: [r8527]
Child: [r8529]