cast OnForeground to uv_after_work_cb

Without this directive, compilation fails with node 0.10.x
Merge pull request #122 from cravergara/patch-1

cast OnForeground to uv_after_work_cb