fix stxxl build against libstdc++
consistenly use LINK_FLAGS for cmake systems that do not respect LDFLAGS