make it compile as static lib