Compile native test file and example