Fixed 64bit warnings