Use c++14 in builds
Use unique_ptr in library
Handle pointers better