osx: fix compilation