Fixed some warnings under CMake 3.0.0

One important change in here is that the target `test` is now called `tests` because test is now a reserved word in CMake. So in order to run your tests type:

```bash
make tests
```