added missing headers for modwrite