Avoid use of deprecated functions + fixed package installation.