x64 adaptations

Doesn't work yet. Throwing some weird error.