Added compile warnings for library build