Use fi_cq_readerr to read queue errors when fi_cq_read returns EAVAIL.

Signed-off-by: Arun C Ilango <arun.ilango@intel.com>
Merge pull request #47 from a-ilango/master

Use fi_cq_readerr to read queue errors when fi_cq_read returns EAVAIL.
Merge branch 'master' into eq_test

Conflicts:
	common/shared.c
	include/shared.h