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.
Merge pull request #1314 from FioraAeterna/fixprofiler

JIT: fix profiler on non-Windows OSs