Add amalgamated build option to build scripts.
At the moment only works and tested on Linux platform.