remove OSX specifics from sys call