fix build on systems that do not have gcc like freebsd 10