Fixes build on some situations:
* use C++ style header files
* fixes bogus NULL usage, as Integer 0.
Register Solaris-specific file. Caught by bulk build at Joyent.
fixes hard-coded localedir:
* fixes installation with PKGLOCALEDIR != share
* fixes runtime search path of locale data.

Bump PKGREVISION.
Updated inputmethod/scim-ccinput to 0.3.1nb15
require unistd.h for access(2)
prevent to use non portable sig_t
keep default pthread related CFLAGS for Solaris.