added license. fixed some x64 problems