Improve opencl::smart_ptr and coding style nitpicks
Fix sign warning
Properly modularize metainfo init code