Destroy window at the end of the test case.
Remove line break at end of source code.
Remove extraneous link libaries.