Support for workers

Assign 'sourceMap' to 'this' instead of 'window' so that browser builds work inside workers.

r? @robcee