Updated to not do curl tests if cross-compiling