Allow compiling of standalone apps on linux and windows (ed78e50 was incomplete)