Change from "c99" to "gnu99" to fix implicit declaration errors