fix system calls for linux (ubuntu)