Fix compile error detected by Solaris build