Implemented build flags - Closes #207