Added ability to compile test executables

Thanks very much for gox, it's been very helpful!

I find it handy to be able to build test executables for quickly testing my stuff on multiple platforms.  I've enhanced gox to support this with a new `-test` flag.