--- mimetypes-nolibs.pri.orig	2015-04-10 09:26:12.859942631 -0500
+++ mimetypes-nolibs.pri	2015-04-10 09:31:59.969951414 -0500
@@ -7,6 +7,7 @@
 INCLUDEPATH += $$PWD/src/mimetypes/inqt5
 INCLUDEPATH += $$PWD/src/mimetypes
 
+message(QMAKE_HOST.arch)
 mac|darwin: {
     QMAKE_CXXFLAGS += -ansi
 } else:false {
@@ -19,7 +20,12 @@
     isEmpty(PREFIX) {
         PREFIX = /usr
     }
+    isEmpty(LIB_SUFFIX) {
+	contains(QMAKE_HOST.arch, x86_64): {
+	    LIB_SUFFIX = 64
+	}
+    }
 
     INCLUDEDIR = $${PREFIX}/include
-    LIBDIR = $${PREFIX}/lib
+    LIBDIR = $${PREFIX}/lib$${LIB_SUFFIX}
 }
