Update build system to make scripts a dll/so