[FIX] fixed compilation on Mac OSX