Fix for cross compiling.