adjusted some linking errors