remove d3dx libraries from build configuration
fix emscripten build, add workaround to work with emscripten's SDL