bug 897020: Update less middleware to recompile once only if optimize is true