Fix for cross compile

Fix for commit 3f7bd421ac90cb369b23b1823de6aee2e4860e7e