make code compile on Linux