Add compilation dependency at 'bgsa'.
Remove reference to STXXL (not used anymore).
Fixed order for closing superblocks.