Ensure compile on Linux, OS X and FreeBSD