Add Linux guards; remove LDFLAGS from C compiler

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>