Fixed compilation error on OS-X