Fix building on non supported platforms