fixes and workaround for disabled stack guard warnings of hadoop libs