[sgen] Link unit test programs with all libs.

Should fix the build for monodroid.