Windows and solaris fixes

Solaris doesn't support multi-line grep. More fixes for install on
windows.
Merge pull request #227 from mhaskel/moar_test_fixes

Windows and solaris fixes