Fixed packaging so that it works in release mode.