Modified for building on Linux