Enhance test application, compatibilities with linux, add cmake files.