LD_LIBRARY_PATH needs to be set at the beginning of control