fixing linking errors