fix build on SunOS
use c99 to fix build on SunOS