updated Linux/OSX compatibilty due to some minor differences