Define _REENTRANT for all Solaris and AIX platforms.

This is essentially the final commit in pull request #39.
Fix AIX linkage of do_upsconf_args()

Closes #58 (GitHub pull request "Fix AIX build")

(cherry picked from commit 5fc7518f97d2738d791c3c77f2257d05e3a9da3b)