fix sign conversion
fix 'this decimal constant is unsigned only in ISO C90' warnings
fix etc/shared permissions: remoted needs to create merged.mg file
remoted needs to create ar queue
create dir var on agent
on agent, queue/rids needs to be accessed by user ossec
Merge pull request #355 from cgzones/conversion_fix

Conversion fix
Merge pull request #356 from cgzones/permission_fix

Permission fix