Fixed linker flags for samples