Fix incorrect write_app_extra() return and missing include in menu-compose.c.