LiquidCrystal 4x40 library for Arduino 1.0.1

Using the two instances method, if you know what line you want to print on, you can use this method:

byte line = 2; //This is which line you want, it could come from anywhere
lcd[(line/2].setCursor(0,(line%2));
lcd[(line/2].cursor();
lcd[(line/2)?0:1].noCursor();
lcd[(line/2)].println("Prints to the correct line");

If you chose the other library, the version for 1.0 will almost certainly work fine with 1.0.1