Make compileable on RHEL 7 for ppc64

There are some tiny adjustments needed for linking on RHEL 7 for ppc64.
Otherwise it works there now as well.