Fix building issue on Macs

This patch is based on artosx's suggestion on GitHub:

https://github.com/AltraMayor/f3/issues/6#issuecomment-66874674