Rename LIB to SHARED_LIB.

The reason is that the Intel compiler (and maybe others) set LIB in the
environment, this causing the buildsys to fail.