Turned out to be not entirely the same as *BSD's (constants with different names, existing and non existing constants), so I decided to make it platform dependant.