use lib64 instead of lib on select linux systems (#4789)