Update misc.h

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