Make use of debug and release flags properly