Revert "Revert "binder: Fix ABI incompatibility between older and newer compilers""

This reverts commit 93337d8faba475e86c89a21f17aa62dce66027c1.