Add space to cflags and add fix compile warnings with wrong character type and unused function.