Patches for check_swap: unresolved symbol when compiling under hpux11.11 [sf#1864550] [#871]