Fix bug in the C module affecting Mac OS X