Moved printf and gets out of lib directory.