Fix flock compilation error on Solaris.

The error is related to #87.