Fixed broken netcdf support due to legacy libs

Autoconf filled in LIBS=@X_PRE_LIBS@ with `-lSM -lICE` which breaks
netcdf compilation on at least MacOS X 10.8 and later. This flag is
now ignored on Intel-Darwin platforms.