changes to build for OSX

This now works on OSX. As per Jeff’s advice, had to comment some lines
in build, and also commit the test image src.pgm.