Compile unit tests only in Debug build type

This way we don't need libcpputest dependency for just plugin
installation.