Fix for "function is not needed and will not be emitted" errors

Clang complains that these functions are not needed and that it won't emit code for them, and the build fails. I'm not certain if this is the best way to solve the problem, but it does work and I couldn't find much on the internet about similar problems with cgo.
Thanks!