Added better native library support for 32/64 bit systems