Declaring lib_dir that supports 64-bit for rhel/fedora before being used.

Fixed issue where the variable lib_dir is used on line 31 but set (with 64-bit support) on line 37. Now set correctly before used.