added c-preprocessor style IFs, fixed cross server problem with loading socket code