fixed c linking error