fix debug/release build context