fixed BSD ldflags