Changing code using less memory.
Modified not to add child library to persistent libraries.
Modified to restore vm current library after compiling failed.