Make library portable