Patches for check_swap coredump fix for solaris [sf#1588031] [#721]