Added support for choosing debug/release mode