Added patch from mac ports