Fix compatibility with F# 3.1 for portable version