added more deps, and added _libdir to check for 64-bit stuff
added libdir to script