Some fixes

1. Updating some startup classes like templates
2. Update a test that runs on mono with right CLR.