Fixed some nslog warnings and 64bit error