setup fixes for static install