Former prime minister unveiled as Brisbane Writers Festival headliner