compiling standalone version