Also make proper references when not using fPIC but linking against dynamic libs