Don't redefine console if it already exists like in Chrome worker.
fixed console detection so it does not throw
tested in Chrome and Firefox
Change compile options for MinSizeRel
Remove "OES" extensions from GL functions when using GetProcAddress
Provide better implementation of localeconv and fix logic error in allocate

This allocates more space to the structure returned by localeconv. This fixes
an error caused by some locale functions (specifically moneypunct_byname::init
trying to access members of the lconv struct beyond the first and dereferencing
invalid pointers. This also fixes a bug in allocate() which occurred when
allocating a single-typed array of data of type size greater than one byte.
The function had been incrementing its index into the array by the byte size,
causing it to skip elements in arrays of larger type sizes. Fixes issue #2134.
Correct syntax of allocate function

Fix mistaken syntax for use of allocate and restore original, very strange syntax.
Formatting fix and add test
Correct some function dependencies to address unresolved symbols in tests.
Fix indentation in localeconv
execinfo.h and unwind.h are unused and unimplemented.
Fix bugs in HTML5 events when using SAFE_HEAP

This fixes a SAFE_HEAP_STORE is not a function error when using mouse events
and a segfault that occurs when the beforeunload callback returns 0.
Merge pull request #2148 from TV4Fun/html5fixes

Fix bugs in HTML5 events when using SAFE_HEAP
Add missing semicolons at the end of statements for library_html5.js.
Merge pull request #2146 from waywardmonkeys/undefined-symbols

Correct some function dependencies to address unresolved symbols in test...
Merge pull request #2139 from TV4Fun/memfixes

Fix errors in locale and allocate, and a few other tweaks
Merge pull request #2136 from rjanicek/worker-console

Don't redefine console if it already exists like in Chrome worker.
Apply coding conventions to library_html5.js.
Merge branch 'incoming' of https://github.com/kripken/emscripten into incoming

Conflicts:
	src/library.js
	src/library_html5.js
make canvas proxy test less flaky
fix test_files_m: do not put a variable called 'data' in the global scope