Profiling GUI, shims part [WIP]

See https://github.com/ghcjs/ghcjs/pull/239/ .