added check to installer for 64 bit support, removed casts to (int) that may have been causing problems on 32 bit systems