fixed broken cflag generation, added mixed_sources test, re-generated build.sh