Fix build on Qt4

Unfortunately I had to remove the 'static'