Replaced uic with uic-macro (the former was linux only).
Moved viewlib stuff inside file.