build: Use safe javac macro for test compilation

Testing: All jobs should continue to be green.  Should now also build on Windows.