Fix compilation on Linux (almost! missing some Sys_ stuff)