remove pointer sign warnings
check cc flags viability before setting them