Fix some building issues in v1.4.1
Merge pull request #201 from HolymarsHsieh/fix

Fix some issues in v1.4.1

Thanks @HolymarsHsieh :+1: