modified sources for OS Darwin