update memory.hh linux support. problem: sizeof template argument when using CRTP http://stackoverflow.com/questions/8544681/how-to-get-the-size-of-a-template-argument-when-using-crtp