Make library extension platform specific