clean up configs and set up cross compiling config for release builds