select compiler and viewer depending on platform
+ change no_preview to with_preview option