handle --default-object-ext properly, and other emcc fixes