Moveed profile into compat
Added ---with-profile wrapper argument

Application profiling can also be enabled using an environment variable,
usually it's one-shot invocations though.

relates to #16