made pov-ray exe location be read from preferences

Also patched up some issues with the Windows build