added build script for cross compiling

simply run ./build.sh. the compiled binaries are stored in ./pkg