Fix compiler warnings.
Moved constraints.h to transformations.h (now have actual constraints).