Fix SIGBUS on Solaris.
(cherry picked from commit 96e28ce19b0b15ae48bd8c739639ed0dc3431f07)