Fix for Bug #12122 Missing dependency when compiling on Mac OS X