Note: I used ubuntu's pastebin (I didn't know it had one) because codepad.org and pastebin.com don't seem to work from here.
Note: I didn't include <Widget.hpp> because the widget stuff is not finished and is not used.
I re-compiled and re-installed the libraries and it works. I guess there must have been a problem with the libraries I compiled, maybe a dependency problem.