Allow overriding compiler, linker from environment

CC overrides the C compiler, LDSHARED overrides the linker.