matiasdelellis/deprecations

Fix some compilation warnings due deprecations.

TODO:
g_cond_free(), g_mutex_free(), g_cond_new() and g_mutex_new()

ps: I can not install it correctly to test