Debianized, fixed compiler warnings, switched to cmake