Override OS-specific libdirs as this was sometimes being installed in lib64 causing problems linking.