Fix eclipse

Let's separate my previous pull request into two separate ones. Here is the first one to fix building in Eclipse.