handle return values for library calls using aliases with different return types
Merge branch 'incoming' of https://github.com/kripken/emscripten into new-beta2