native: added missing header and fixed flags

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>