Fixed (c) statement.
Report memory on windows and osx (not tested).