Added missing libs and fixed deprecation warnings, when built project on Linux