Bug 851828 - Type safety improvements for the profiler in Win64 builds. r=benwa

--HG--
extra : rebase_source : 10141bdc66228dd6818ff0b10ef95fde78fead8f