Updated to correctly set 64bit flags