C standard stipulates that we have to cast the function to another of the same type to avoid unexpected behavior. We aren't using the function in this case, but Nick correctly points out that we should follow the standard regardless.

Refs #3755
Add missing include file on Solaris environments

Refs #3763