Fix C program for OSX.