Fixed screenshots not being saved in order

Fixed a few compiler warnings
Added a few more platform switches