the code generating preferences.php was commented due to apparent unusefullness.
The image galleries are known to be headache-related for some since at least 1.7.4. Try with the database, and also with Imagick. It's rather quick to install on Windows.
About templates_c/ being empty, it's not normal, but I think I heard that a few times. If you compile in Admin System, do you get something?