fix some gcc compilation errors
mend
add gcc test project