Kind of fix for Portable libraries