Fix conditional compile logic in speed.c