fixes windows not compiling stdlib.  There was an extern that was unused for native methods that was not valid.  refactors common code for x86 runtimes and orders tests