JIT: fix profiler on non-Windows OSs

Still doesn't support timing code (since that's Windows-only), but run counts
will at least work without crashing.