added ldflags support