Changing LessTask @OutputFile into a @OutputDIr as it was breaking builds

Also did some minor cleanup on compiler warnings.