handle non-64bit libdir for ARM