I suspect that this is not the correct fix, did you try it on your Mac? Please have a look at @guillermo-carrasco's commit and how he fixed the linking problems with MacOSX over here:

https://github.com/SciLifeLab/facs/commit/e11d770e2b897e40caa94d0dc6c693f0785bc41b