cast OnForeground to uv_after_work_cb

Without this directive, compilation fails with node 0.10.x