Fix building (externally) with browserify