Update libs and directories