Make vec.h const-correct with both C and C++