fix for crosscompiling