Patch to fix issue preventing Shotdetect from building on Mac OS X