fix compilation for non OSX devices