misc: added script to build server components

Related to #318.