port filesystem

Test passes -

```emcc -O2 testfilesystem.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html```
I meant using the c function (replacing the EM_ASM block with `if (mkdir(retval, 0700) != 0 && errno != EEXIST) `)