Compiling libraries well