Fixed linking errors and errors dealing with huge volumes