Refactored and added build feature for CS Studio core.