update code for build static binary file