Fixed bug in split()
Modified handling of os matching
No semtimedop() for FreeBSD