Platform specific fixes

- memset needs the inclusion of <cstring> on linux.