fixed compiler warning, added simple staticlib target