Fixes Compile errors

* missing include (because of missing include directory link in cmake)
* wrong initialization order (causes compile error on my gcc 4.8.3
  linux machine)