build: Consistently handle conditional compilation for all optimization OBJS.