C compiler portability fix