linking c functions