Make runnable on Linux

Make Windows specific initialisation conditional