better os detection avoid warning ldflags