Fix solaris 9 unit test failure of policy_test

%z format specifier is not supported in Solaris 9 which is not c99. The use of %zu in PolicyErrorWrite caused stack corruption and failure of 8 / 13 of the tests in policy_test. A platform test has been added which uses a suitable format specifier for solaris 9 and allows other platforms to be added if needed.