add minimized libs
small size fix
add nginx compatibility