[PATCH] x86_64: Implement is_compat_task the right way