Fix build on certain platforms.