Removed checks for unnecessary libraries to simplify cross-compiling