Update pattern.c

Include <std> libraries before "local" ones, to reduce compiling issues.