[ADD] add public method to force rotate files
[FIX] works also if the compiler is not gcc