multi-platform class and template library
