fix compilation on solaris with new sunww compilers (closes #416)