Build errors with AMD64