Various fixes. Now scanning for symlinks and compining on linux and solaris/openindiana. Thanks to evoz4