streamlined build process to get rid of redundant compile options