Updated ro handle debug and release builds.