core: Use better monotonic clock on Linux
aosd: g_type_init is deprecated in glib 2.36
core: Cast timestamp to avoid overflow

On 32-bit systems, time_t is 31 bits and overflows after ~24 days. This
should fix #38.
Merge branch '1.8-stable'