add markfile declaration to appropriate functions when fchmod is not available