Fix warning -Wdangling-else in err.c
Fix warning -Wcomment in bsd.cpp
Fix warning redefinition of macro '_GNU_SOURCE' in err.c and mac.c
aio progress