Fix undefined reference target errors