Updated build process to correct flags issue.