Provide include and lib paths to g++. This should probably be removed in the future to increase portability
May fixes and improvements. Net result is gaussian and sobel now work correctly.