Use child_process.exec for the build

the previous child_process.spawn was not working with bat scripts on
windows.

Unfortunately, I don't have a windows box here. Lets hope that this
fixes most of the problems.