proper static linking by using NetCDFs pkg-config script