Fixed testing and cross-compilation checking.