Modified build script to compile both debug and release versions