fix: Fixed sizeof miscalculations (by replacing it with C++11 functionality)