This also includes fixes in generated Makefile, which should contains debug and release configurations