added platform independent build.py

[skip ci]