updated for visual studio 64 bit build