minor changes for compiling different libs