Update: Fix call deprecated functions.
Update: Fix multi-platform support.