separate ld and cc options; add script to invoke program from any directory