Added online resize. Untested under storport yet (>= Vista)
Correctly initialise pi values and set header size based on lookahead
fix warnings