Fix btQuickprof for cross compilation and older systems.