pattern linux compilation fix