remove linux compat file
use creat where possible and available