Update compiler.js

Updated to work with execSync instead of exec-sync. exec-sync has a dependency of FFI which I had trouble getting to compile properly on windows.