Added TRACEM option. Use -g when building native code for tests.