Added support for 32bit or 64bit dll