another try at fixing linking errors