fix building lingeling on FreeBSD

To get int64_t, include stdint.h rather than stdlib.h.