x11: added missing headers and explicit type conversions

Signed-off-by: Carlos Rafael Giani <carlos.giani@streamunlimited.com>
Added OpenEmbedded recipes