use .tmp extension for all temporary files
correct library path after previous cange