Fix some clang compiler errors on Mac OS X.
Plum now builds, but doesn't run on Mac OS X 10.9