Fix dependencies for release build