split core and gui build targets