similar patch was proposed on openjade-devel 10 years ago, and still hasn't been integrated... Fixes build on Solaris.