Debug and release mode use different compiling flags