Clean up formatting. Add link parameters for g++ 4.8.1 on Windows.