Enable OEX shim library to function when run in a .oex file in Opera <= 12.15

This pull request provides fixes to ensure the generated build libraries are able to run in previous versions of the Opera desktop browser (<= version 12.15).

The full changes in this commit can be viewed @e1dbc78e5ad1bff61e676742254b90a1642d4428