Wrap console.log when it's not available. Fixes #57