Fixed Compiler warnings and fixed millis definition