More proper detection of reset_priority, make stub for Haiku