Appending .dll or .so based on comilation-time #define