heap: use pragma once if available

[SVN r86525]
heap: possible fix for testsuite

[SVN r86526]