added 64bit support and fixed theos arm64