removed some superflous linking, compilation directives in 'test'
(because either tests using 3rdparty software an in subdirs or they
are using modules or test modules depending on 3rdparty software)