Workaround broken function-style cast support in HP-UX