Fix build on Solaris 10.

* Add conditional for true and KEY_RESIZE definitions.
* Add conditional KEY_RESIZE(3)