compiling PR, lazy loading some libs