updated smallscaling.c to build without C99 or C11